fix bug 972545 - prevent deleting parents

smaller hack