api query fixed