fix for grid.js