diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -16,7 +16,7 @@
             if low <= elem <= high:
                 out.append(elem)
             last = elem % 10
-            if last > 9:
+            if last < 9:
                 queue.append(elem * 10 + last + 1)
 
         return out
