Fix A+ promises implementation