symbol_table: Fixed scope bug