fix bug on CheckForUpdate