fixed minor bug with movement near off screen