fix bug, valid_context should at very beginning of each page_layout when generate page.