fix setCurrentPage bug