added page_num to #all and a fix on #each_page