Fix issue with scoping

Can result in browser hanging when attempting to add subtopic