vector issues with leaflet