Bug fix in check for page.