Fixed problem of state changes not showing.