Fix bad example in the state tutorial part 3, Fix #6165