fix small bug (logger)