Minor fix for orphan detection