BaseParameter bugfix.

The original code always replaced an arbitrary input by the default value.