fix logging errors