[899753] Corrected promise handling