fix mouse not always changing on first line