Remove unnecessary call to vec