minor fix of logging