fix cause of state cancel crash.