fix static->dynamic dynamic->static vector initialization