Added a conditional to prevent chencking the symbol table for the same id multiple times