Fix some bugs in the frontmatter.