Do not get window handles twice