diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -14,7 +14,7 @@
         sub_sum, sub_seq = 0, []
         for x in nums:
             sub_sum += x
+            total -= x
             sub_seq.append(x)
             if sub_sum > total:
                 return sub_seq
-            sub_sum -= x
