Bug Fix in template.cot