fix another logging bug