don't return index query with value None