solve the multiple query response bug