fix extends_symbol_table function bug