fix active window