Fixed vector memory bug.