fix upgrade to include critical tiapp.xml changes