fixed contest link bug in templates