fixed a bug related to focus out and async true