Fix name of array element with counter