fix detection win