Fix get parents IDs.