Compactor runs through cycle but won't stop at top

Motor runs through cycle but won’t stop at the top. I thought it might be the top-limit /directional switch, replaced it and still does the same thing…
Any ideas?

the start switch was stuck in the on position…freed it up and all works well. Unfortunately now I have an extra top limit switch.