Fixed pagination error in topics/show