fix the regexp engine