Resolve window issue

Resolve some window issue for Xcode 4.5 bellow