fix resolve->return promises error

Ping @jdfreder to review