fixed error related to handling deletions of multiple objects