fix crash when signing cancelled