fix triples