Bugfix in the logging

Bugfix in the logging