Fix a bug related with Logger.