Fixed ordering bug on creating a new page as a parent of another page