Fixed an error in the for loop of the placeholder array