fix addLegend, no new device