Fixed errors in ruby 1.8.7 due to Hash syntax