Corrected problems in base template.