Fixing logging handler