fixed validation of templates