Improve cursor position