fix typos (resolvePromise -> rejectPromise)