Merge pull request #1820 from appleboy/pagination

Fixed #1817 Pagination class error