The `enablePromise.done()` handler is getting called twice.