Fixed hidden window issue