Made some fixes to the update server code.