Fix params not being set correctly.