fix wrap around with enabled movemode