fix error when there's a single cell in the automaton