fixed silly bug, was getting name not code in glossaries