Fixed check for updates