Fix a possible infinite loop in the symbol map.