fix the 'leave topic' func