fixes quardent rendering error in grid.js