Fixed bug in NewPageController