more html parser corrections