Fixed a minor bug which would break the simple templating under certain circumstances.