change hash format to support ruby 1.8