fix bs-query bug