fixes tag closing