Fixes error in grid.js