Update main_adapter.rb

use of correct type_map