diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -11,8 +11,9 @@
     def minPairSum(self, nums: List[int]) -> int:
         nums.sort()
         list2 = []
-        right = 0, len(nums) - 1
-        while right > 0:
-            list2.append(nums[right] + nums[0])
+        left, right = 0, len(nums) - 1
+        while left < right:
+            list2.append(nums[left] + nums[right])
+            left += 1
             right -= 1
         return max(list2)
