Fix injecting data into a position in an array.