fix collision glitch