diff --git a/code/absinth_nx.py b/code/absinth_nx.py
index 57cae2f65087fb5e226484776db23b66cf7b69d1..8b7655306dfbf7199ba1a5c2e0ae1472e40f1f6d 100644
--- a/code/absinth_nx.py
+++ b/code/absinth_nx.py
@@ -199,16 +199,16 @@ def disambiguate(mst, hubs, contexts):
         
         idx = contexts.index(c) + 1
         
-        if max(vector) == 0:
-            result.append((backup_cluster, idx))
-            backup_cluster += 1
-        else:
-            try:
-                cluster = np.argmax(vector)
-                result.append((cluster, idx))
-            except:
+        try:
+            if max(vector) == 0:
                 result.append((backup_cluster, idx))
                 backup_cluster += 1
+            else:    
+                cluster = np.argmax(vector)
+                result.append((cluster, idx))
+        except:
+            result.append((backup_cluster, idx))
+            backup_cluster += 1
         
     return result