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

cool, I just tested and you're right, everything works.