Class hierarchy not generating properly

During generation class names that should show up as links were showing up as black text with their linkable item right below the dropdown. This was because the system was always pushing the class on to the children array instead of updating when it already exists.