fixed Alchemy entity recognition loop