Fixed a tiny bug in the base template.