fixed leaflet error