fixed bug when checking for updates