move back flattenTerms before ResolveOpenCells