fixed "highlight tag was never closed" issue