fix error logs