Fix double loading of ontology by doing a lookup