Fixed automaton copy issue