Fix Stuck behind a bar

Fix #957
Might be the only solution that is compatible with the use of mvt_x and mvt_y