revert mermaid changes