fix initial state in example