compactor door won't stay closed

Our compactor door won’t stay closed. I have looked at the foot pedal and it doesn’t seem broken. There is no debris in the track or along the back. If I hold the door closed the compactor works as normal but the door just won’t latch. I am unsure where the foot pedal is supposed to latch. Holes in the bottom plate or along the track wheels?