fixes indexing of topics