Fix typo that caused max/min quantifiers in ungreedy mode not to work.