fixed bug when params do not correspond to the expected class
Merge pull request #279 from fterrier/dsr-fct-params-hotfix

fixed bug when params do not correspond to the expected class