fix leaflet events bugs