Fixed missing last page of encyclopedia when using context menu.  Fixed other accurances of not looping over all the pages.