diff --git a/bin/merge b/bin/merge
index d95cec685be87bda9a0de03dec7da0dfc8d6a798..d7d0aee3722b9158a710d4814ff22dba775b3560 100755
--- a/bin/merge
+++ b/bin/merge
@@ -85,8 +85,12 @@ else
   echo "Find project ID from remote URL ..."
   # shellcheck disable=SC2001
   path="$(echo "$path" | sed -e 's,\..*,,g')"
-  gitlab 200 GET projects?search="$path"
+  gitlab 200 GET "projects?search_namespaces=1&search=$path"
   PRJID=$(echo "$result"  | jq -r .[0]."id")
+  if [[ "a${PRJID}a" == "aa" ]]; then
+    echo "No project found"
+    exit 6
+  fi
   if [[ $(isNumeric "$PRJID") -eq 1 ]]; then
     echo "Can not find project ID"
     exit 6