Fixes logging message.