Fix the promisified bootstrap code