fix cursor move on input field change