Fix a syntax error and rename upgrade to update