fix wrong call to NewPromise