bugfix for window in ie6