fix bug copying html