Fixed Empty Window After Exception Bug