fixed random motion glitch