Fix querying for any value