Fix bad tag check