fix movement next-pos calc