Avoid segfault by not converting to vector