fixed bug in autoupdate
Revert "fixed bug in autoupdate"

This reverts commit 623a83500125bb66108c16e2cb8840cebe86df68.