Fixed empty cell type and initialized block logic in grid