Bugfix on greedy matcher.