Fix htmlpreview