minor fix for object deletion