fix legend