Fix automatic flag in an upgrade.