fixed add_definition template id attribute