fix cell elements arrangement anomalies