Fixed preprocessing method duplicateSpacers