Set WindowState after loading

Fixes bug 101