Fix ctRegex unstable parser