Yep that's poor design.

Better way is to make so Switch rides with the axis and rides over target ramp at each end. Less wires and switches to wrong and easy to setup.