Fix legend