Fixing logging error.