fix record event trigger