Fixed passing of vector