diff --git a/hpvm/scripts/hpvm_installer.py b/hpvm/scripts/hpvm_installer.py
index bf879cdb1db3151d94acfd4f53b36aa6ea6ef025..11ad3045528543d8398828394cc7236fc849bb30 100755
--- a/hpvm/scripts/hpvm_installer.py
+++ b/hpvm/scripts/hpvm_installer.py
@@ -74,6 +74,7 @@ def prompt_args():
     def parse_int(s: str):
         try:
             v = int(s)
+            return v
         except ValueError:
             return None
         if v <= 0: