fix defect when switching child page and parent page