litte patch for local_copy_object