Fix bug of EmbedTag caused by the weird and messy logic.