fixes to correctly simulate the vector unit