fixed error in cv