[BUGFIX] Cursor position is changed while typing