fix movement calc