fixed pageCount clear bug