Fix topic pagination