minor fixes to autoupdate algorithm