Make xcopen actually work