fix crash when cancel KKDialog