fix issue with cursor changing on input