Fixed error on tag creation