Fixed frontmatter parsing