fixes to frame flattening for olaps, charts