Fixed truncating bug for html