Resolve parent ids