fixed logic error in exp1.py -c repair option