Fix HTML tree rendering