Fix to trig folding.