fixed orphan deletes