fixed local copy bug