fixed cv bug