|#1097| Fixing max number of pages shown