Fixed parsing errors, mostly unclosed tags