Fix incorrect html (thumbnail badges)