try to fix ui blocked by promise issue