A few bugfixes to the grid.