Fixed hash convention to be compatible to Ruby 1.8.x