Added initial fix for the browser not focusing on the right window handle