fixed uiWindow maximized problem