bug fixes for leaflet config