Fix vector bug