fix issue when no stylesheet found from html