regex factory config fix