Css fix legend bug