fix minor bug in leaflet layout.