fix a small promise bug