mod to fix movement bug