second fix for query for local data with childrenProperty