Fixed vector memory error