Minor bugfixes wrangling parameters. Fixes #112.