Fix Exception NoMethodError: undefined method `values' for #<Array:0x00000004354108>