Fixed creation of output window

...eating it.