Re-ordering window setup seems to fix problem on Linux

At least for 80% of the times you try to run it...