fixing formula and rect id