Fixes html legend pane