fixed bug with HTML entities