fix create flat window demo
fix create flat window demo