Fix vector sizing bug