Fix some errors relating to vector() and matrix()