Fixed the auto-updater code