Fix the legend border.