fixed the error reporting bug