Correction of if in rawdata-autoseg