small fix that caused error during error reporting.