fix crash when cancel compose mail
update detail