Fixed issue in pin.rb file