diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7862434136b144d2055e3c1b6ba6b6cd79ecf9cc..f5a6661f78897c6672afa522cd537fdb4b4b4dac 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -35,12 +35,14 @@ tag_deploy:
     - export AWS_SECRET_ACCESS_KEY
     # Fetch the prod branch
     - git fetch origin prod
-    # Check if the tagged commit is from the prod branch using merge-base
-    - if git merge-base --is-ancestor "${CI_COMMIT_SHA}" origin/prod; then
-      echo "Tag ${CI_COMMIT_TAG} is from the prod branch.";
-      else
-      echo "Tag ${CI_COMMIT_TAG} is not from the prod branch.";
+    # Get the current branch or tag pointing ref
+    - TAG_BRANCH=$(git for-each-ref --format='%(refname:short)' --contains $CI_COMMIT_SHA refs/heads/ | grep "^prod$" || echo "")
+    - echo "Current branches containing this commit: $(git for-each-ref --format='%(refname:short)' --contains $CI_COMMIT_SHA refs/heads/)"
+    - if [ -z "$TAG_BRANCH" ]; then
+      echo "Tag ${CI_COMMIT_TAG} was not created on the prod branch.";
       exit 1;
+      else
+      echo "Tag ${CI_COMMIT_TAG} was created on the prod branch.";
       fi
   script:
     - "TAG_ARCHIVE_URL=https://gitlab.bob.co.za/bob-public-utils/bobgo-magento-extension/-/archive/${CI_COMMIT_TAG}/bobgo-magento-extension-${CI_COMMIT_TAG}.zip"
diff --git a/composer.json b/composer.json
index 4d5f670298f54a93877a777442d9cf445c9870d4..bc33c009fa00169205d9e50308f43def3fe1a9cf 100644
--- a/composer.json
+++ b/composer.json
@@ -2,7 +2,7 @@
     "name": "bobgo/bobgo-magento-extension",
     "description": "Smart shipping and order management solution in South Africa",
     "type": "magento2-module",
-    "version": "1.0.52",
+    "version": "1.0.53",
     "authors": [
         {
             "name": "Bob Go",
diff --git a/etc/module.xml b/etc/module.xml
index 89ebeab2369c3dbecc41955bc980c5069d208db9..c6469b1dbff149fc460207b13baa64a8ea4f0cb2 100644
--- a/etc/module.xml
+++ b/etc/module.xml
@@ -7,7 +7,7 @@
  */
 -->
 <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
-    <module name="BobGroup_BobGo" setup_version="1.0.52">
+    <module name="BobGroup_BobGo" setup_version="1.0.53">
         <sequence>
             <module name="Magento_Webapi"/>
             <module name="Magento_Catalog"/>
diff --git a/package.json b/package.json
index 04298609510b1df7a991a472d974c92d3f5586c3..ad014704efc3b6ca16b54abfc1ed63cf248c666a 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
 {
   "name": "bobgo-magento-plugin",
   "description": "Bob Go magento plugin",
-  "version": "1.0.52",
+  "version": "1.0.53",
   "license": "GPL-2.0-or-later",
   "scripts": {
     "prepare": "husky install",