bad tag closing fix