Fixed a bug that erased loaded ontologies. There is another bug though: when editing accession references in text, the sidebar display gets confused.