Fixed cvector sizeof error in new function