fixed frontmatter parser