Fix the total of replaced instances.