fix extra character in template.class.php