fix error reporting at open time