diff --git a/demo/index.html b/demo/index.html
index e9a0e308..6ada091a 100644
--- a/demo/index.html
+++ b/demo/index.html
@@ -60,7 +60,7 @@
}).addTo(map);
map.on('click', function(e) {
- geocoder.reverse(e.latlng, map.options.crs.scale(map.getZoom()), function(results) {
+ geocoder.reverse(e.latlng, map.options.crs.scale(map.getZoom())).then(function(results) {
var r = results[0];
if (r) {
if (marker) {