fixed bug where default input-num
value was being set to 0