fix update to be a hash not a nested array