sitemap.xml using subdomain address instead of primary domain

When creating sitemaps on multisite the plugin is sometimes reverting to using the subdomain address instead of the primary address assigned to the site. Is there a fix for this?