Fix autoupdate mechanism