bug fixed on wrong ref for CV