fix error_log issue