fix when currentPat is major than pageCount