focus lost state crash fixed