Fixed ugly terminal window creation.