fix moveMarker position calculation