fixing ruby 1.9 error