Fix error logs