fixes error in sitemap file output func