Fixed index assignation when set data is an array.