Fixed undefined type
Fixed a bug that caused multiple sub-items (accordion/tabs/toggles) to break when more than one is on a page