fixing duplicate topics bug