Fixes cursor highlight position