fixed bug with over-querying api