PregMatchOptimizer fix

Some mistakes