Rectify how parameters are handled in setparameter()