Fix bug when multiple front matter exists