more error fixes for page and subpages