Fixed error in logger.