Fix legend print