correct legend border in plot4