Fixed newspage var checking