fixed the window rules