Fixed bug when PED reader finds parents before children