Correction in algorithms