Fixed the bug that the loggers had not been initiated