modify query number
fix some bug