fix update parameters
Merge pull request #1029 from ruil2/update_param

    fix update parameters