Logger fix

issue #47