fixed querying of user search criteria