error reporting fixed