Fixing Zend Framework pagination issue