fix bug caused Page.new to fail