params error bug fix