logger bugfix