Fixing logging message