fix parsing of bad website. fixes #899