Copy vector, don't reassign pointer

Bugfix for previous commit