Fix leaflet legend bug