Fixed cursor position after delete