Fixed a movement bug.