api query bug