Fixing calling promises functions

Signed-off-by: José Luis Di Biase <josx@interorganic.com.ar>