fix logging in