Fix syntax error in upgrade.