Fix the state's execution order