fix when currentPage is major than pageCount, fix inserting a NaN in inputs

Please note: `var currentPage = 1 + Session.get();`