error reporting fix