fix tag creation