fixed movement bug