Fix CreateWindowAndRenderer()