Bug fix: When user add figure, tag structure broken.