Fix timeout in updater

Fix the timeout working in updater.