fixed infinite loop when using --force-auto-update