Fix a vector that was passed by value instead of reference.