fix Promise BUG