fixes logging message