diff --git a/cdist/conf/type/__acl/gencode-remote b/cdist/conf/type/__acl/gencode-remote
index 56c1cbc1..96b4a57c 100755
--- a/cdist/conf/type/__acl/gencode-remote
+++ b/cdist/conf/type/__acl/gencode-remote
@@ -37,7 +37,7 @@ do
 
     while read -r acl
     do
-        if echo "$acl" | grep -Fq 'X'
+        if echo "$acl" | sed -r 's/(.*)://' | grep -Fq 'X'
         then
             if [ "$is_dir" = '1' ]
             then