you are sure this call go here and not in the else? and the call in the else here? win8_ vars are never initialized.