first window problem fix