Fixed the window not being created