fix errorrous share group deletion