fix deletion of shares