hack to parse malformed HTML tables