torsion might be writing over params struct...