Initializing window finally works..