As you can see there is a secondary safety pin which is meant to prevent the latch from opening by mistake. However this doesn't seem to be the right type of pin... its possible for it to slip too far through the hole (or be mis-installed) like this:
in which case it doesn't really serve its purpose.
I've never actually had a problem with this, but I'd feel much better if I could replace these with some other sort of pin that would avoid the problem. I'm familiar with several types of pins, some agricultural, but all seem like they would have the same problem.
Can anyone recommend a style of pin that would work here?