Fixed bugs with movement.