correct replace regression