Fix line numbers for error reporting