small error reporting fix