Fix error highlighting empty lines