bugfix to federated sharing