prevent warning on checking pagename