improve html compatibility part 2