try to generate less broken html