Fixed legend graphical bug