bugfix in logging class