fix for sitemap check

generate_sitemap called twice, and bad boolean logic check.