Fix off-by-one error setting default arg values
Merge pull request #4518 from tweeklab/module_run_default_fix

Fix off-by-one error in module.run state function setting default arg values