fix <legend>