fixing 2d cell edge ordering.