fix

Undefined variable: newParams on line 166