fix error log output