Fix bug with display properties in resulting .html buffer