fixes in chart legend