fix duplicate regexp events