fix bug with remoteapps when publishing to exchange