Changed logic of correction.