Fix Preparing Automatic Repair Loop