fixed bug in rescue orphans functions