cursor move position correction