Fixed bug when using the new fields syntax for templates and validation
fails