fixed pagination current page calculations. closes #1319