Fixed bug when displaying HTML text