Fix issue with multiline grids