fix crashing bugs when parsing website