correct children order in API