Fix crash in trying to share