fix error report with negative quantifiers.