Correct tag parsing