AQCU-1305: the legend wasn't always working correctly, fixed
AQCU-1305: the legend wasn't always working correctly, fixed

mhines-usgs/repgen,zmoore-usgs/repgen,dpattermann-usgs/repgen,USGS-R/repgen,USGS-R/repgen,USGS-R/repgen,dpattermann-usgs/repgen,dpattermann-usgs/repgen,zmoore-usgs/repgen,mhines-usgs/repgen,mhines-usgs/repgen,zmoore-usgs/repgen