Fixed tag closing issue