fix movement behavior