set the tag correctly