fixed bug in updater