fix deleting of shared files