Fixed bugs with the LoggingService