Update main_adapter.rb

use correct type_map