fix compile eror related to FACTORY when using regexp=interprted