diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -20,4 +20,4 @@
             left_ind = dnc(l, mid, lo, hi + right)
             return left_ind if left_ind != -1 else dnc(mid, r, lo + left, hi)
 
-        return dnc(0, len(nums), 0, undefined_variable)
+        return dnc(0, len(nums), 0, 0)
