Loop count/iteration bug in table.cell and grid.tile.