Use old hash method index instead of key to support old version of ruby

DESC: B