Fix initialization of cell state.