fixed multi windows bug