Fixed bug in updater