bugfix for logger