Fix batch where as before the parent object was deleted before the child...

...ren were batched.