Fix bug on the order of schema's parents list.