fixed updater to avoid errors