Fix window rules.