Corrected error with nested vector