fixing ruby 1.9 error
Merge pull request #1499 from jlsherrill/1.9fix

fixing ruby 1.9 error