Change around the startup order so the correct application URI is used.