fix legend design