Fixed a bug in updater