Fixed an issue with repeating characters automata.