bugfix calculate movement out of points