Pagination issue/ threads getting cut off