fix line numbers in error messages