fixed mutable copy of vector