bugfix for replacing XDI identifiers