params bug fix