fixed bug where deeper levels weren't getting legends if all had the same parent