fixing error logs