hack to fix a problem with leaflet https://github.com/Leaflet/Leaflet/issues/1698