Fix error highlighting at the correct place.