legend markup fixed