fix cannot parse legacy pattern*