Fixed major bugs in updater