Fixed a problem with replacement size