Fix some movement glitches