Bugfix in the logging