fixed issue where custom object could not be deleted