Fix: hasPart is not removed from parent when deleting object