- fix error reporting