bugfix for replacer