Fixed a vector copy/memory issue.