Fix legend position to be centered - #515