Fixed bug in template-form-view