Fix an array to map assignation