leaflet workaround