fix  promise issue