Fix Promise API