remove duplicated key in @ptg of Formula.