minor bug fix on chart legend.