Fixed bugs in Vector constructor