fix local_copy