Fixed template references.