fixed bad stuttering of map movement

fixes #400