Fix some problems with autoupdate #51