Fix parent of sub pages for proper import