bugfix for size replace