Bugfix of the window initialization and windows lookup test fix