fixing error log