Added error correction for parseCvec function