fix checking for updates