Before re-construct the automata classes.