fix dup logging