fix IE bug with open.window