Changed ruby 1.9 hash to 1.8.7 hash