Fix bug in setResults(htmlStr)