Fixed bug in autoupdate.