Fix hash method access bug