error reporting fixing