Fixed cvector reallocation error