Fix issue with leaflet maps