fixed minor problem related to Logging