Updating variables inside grids fixed