fixing names of templates (names must be unique!)