fixed logic flaw in update checker