Fix to allow the use of promises in sync adapters