fixing scopes defined on CDQManagedObject with targetless queries