add legend, swap asset-class from invalid ids to classes