Small change to input handling in set_parameter_free/not_free

As suggested by Francisco