minor fix in assembly.automaton and preprocess