fix display of error locations