// Fix header and footer for autoupgrade