Write correct glossary to disk