Fixed an error related to the update of the grid.