fix for x-axis legends