Fixing a problem in copy_from