fix legend scaling