fixed problem with generate new html file