Fix vector support in which function