fix crash in flex yy_top_state bug workaround