fix bug of parameters setting incorrect.