Fixed undefined index in template.alternatives.php