Fixing mermaid data