Change template field name to type