fix problem when share canceled