Fixed mdet bug for CIS