fix bug with wrong carriage move on right arrow button press