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

This doesn't work as expected, I dunno why.