diff --git a/query/src/main/java/org/infinispan/query/indexmanager/InfinispanCommandsBackend.java b/query/src/main/java/org/infinispan/query/indexmanager/InfinispanCommandsBackend.java
index <HASH>..<HASH> 100644
--- a/query/src/main/java/org/infinispan/query/indexmanager/InfinispanCommandsBackend.java
+++ b/query/src/main/java/org/infinispan/query/indexmanager/InfinispanCommandsBackend.java
@@ -165,7 +165,7 @@ public class InfinispanCommandsBackend implements BackendQueueProcessor {
          return members.get(elementIndex);
       }
       else { //If cache is configured as DIST
-         return hashService.primaryLocation(indexName);
+         return hashService.locatePrimaryOwner(indexName);
       }
    }
ISPN-<I> Make query compile with the new ConsistentHash interface