If the switch has actually been depressed and activated by the collision (you’ve verified this?), the problem isn’t with the way you’ve mounted it, but with your software commands, or the ability of your mechanics to respond with the “go around” command. I would start the command with a short reverse of direction, followed by a 90˚ turn.