fixed bug in movement