Fixed copy bug in v8