Fix issue with logging error