fixed wrong type name 'templates' > 'template'