Fixed a bug where index was always used rather than the actual first_page
Merge pull request #251 from BrandonOCasey/first_page_fix

fixed index from always being used rather than first_page