Fixing topic deletion bug