Fix line number in error messages