Bugfixes to the check for update process