Fixed pagination issue in topics view.