fix delete event “toMain”