fix invalid html issue