Fixes up resourcePromise