Bug fixed in state