Fix terrible bug in auto-updater