fix logging response bug