fix render in “grid” mode