bug fix legendlabels undefined on rw