vector cpy fix