fixed problems with the selected glossaries iterator