fix sharing bug