Fixed crash in loggers.