diff --git a/pom.xml b/pom.xml
index 60433df..ff80db8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -9,7 +9,7 @@
org.gcube.resources.discovery
ic-client
- 1.0.1-SNAPSHOT
+ 1.0.2-SNAPSHOT
Information Collector Client
Client API for the Information Collector service
diff --git a/src/main/java/org/gcube/resources/discovery/icclient/Helper.java b/src/main/java/org/gcube/resources/discovery/icclient/Helper.java
index 60d3b55..b3ea262 100644
--- a/src/main/java/org/gcube/resources/discovery/icclient/Helper.java
+++ b/src/main/java/org/gcube/resources/discovery/icclient/Helper.java
@@ -44,8 +44,8 @@ public class Helper {
String forPropertiesString="\n *VAR* in *COLLECTION*/Data \n"; ///child::*[local-name()='Scope']
String forString=" *VAR* in *COLLECTION*/Scopes \n";
- String authString=" (contains(*VAR*/child::*[local-name()='Scope'],'"+scope+"') or contains(*VAR*/child::*[local-name()='Scope'],'"+scope.substring(0,scope.lastIndexOf("/"))+"')) ";
- String authStringNormal=" contains(*VAR*//Scope,'"+scope+"') ";
+ String authString=" (*VAR*/child::*[local-name()='Scope']/text() eq '"+scope+"' or *VAR*/child::*[local-name()='Scope']/text() eq '"+scope.substring(0,scope.lastIndexOf("/"))+"') ";
+ String authStringNormal=" (*VAR*//Scope/text() eq '"+scope+"') ";
String queryFiltered;
List collInsert= new ArrayList();