fix for logging message