sharing bug minor fixes