fix event removal

Fix #5690