to fixup the bug when call rtgen.py in num args