Fix htmlPath issue