fix for queries with 0 results