Merge "fix deep copy of the vector." into devel/master