Fixing bug on repetition of topics