Fixed a typo on loading a template file.