delete for topics and fix referral error