Fix for HEAD to HEAD upgrades.