Fixed where parent is 0

was setting as null