Fixed cursor position error