CreateWindow bug fixed