fix two bugs in page location in new page creation