Fixed cursor position when editing existing item