fixed num-args bug