fix for with-promise issue