Fix share functionality for groups