Don't you need to update params too in that case? (line 34)