Fixed bug where tree labels were wrong due to incorrect attribute list indexing