Fix some bug in template.
Fix generate sitemap in cron (maybe :) ).