added fix for logging