fixed xPcopy