modify code struct, and modify window can not close .