fixed the order of arguments in new_field_from_template