Fix initialization error with IsingGrid.