Fix legend position on Firefox