fix add event and security