Fix some window problems

Fix window name
Fix window resizement