Fixed bug in shared/delete