fixed rendering bugs with small number of cells
Merge pull request #19 from ddwang/master

fixed rendering bugs with small number of cells