fixed sharing bug