Fix case where params are mutated