Fix legend order