Fixed bug in component template files.