Fixed a movement bug