fix create_tag function

The interface has been used for construction