Fix crash when share a second time.