fix legend for split