Fixed a bug where included templates could not be found.