it is setting the state for the first time after deserialization, the state is nil.