change hash define compatiable with ruby 1.8