fix cancel bug for undefined newShare