fix tag ending