fixes issue #1.
Merge pull request #2 from awirick/issue_pagex

fixes issue #1.