I think filling the array is here the problem. perhaps this helps:
-Make array of normal vectors(no pointers)
-fill it with using vec_set

Reason why yours with pointers can't work. vector() creates an temporary vector after sometime its get overwritten

muffel