additional bug fix for deleteObject