Update ion_extractor.rb

minor bug fix