Fixed a bug: goto before first state.