End tag shouldn't reset the last text index