DOM Window frames bug fix