Fix bug in transitions to fail states where not the complete suffix
was being followed (only the first character).