fix pagination issue (undeclared variables)
Merge pull request #3 from grisoni77/master

pagination warning