Bug removed in editing topics

corrected the condition given for editing topics to maintain uniquene in its hierarchy level