leave event hotfix