Fixed an issue with attribute template.