fix logging bug, more