Fixed the htmlpreview