reset cursor position after typing name.