Change index for pin.rb