Fixed bug where template was replacing 'elements' should be 'element'