fix logging trouble