Typo in algorithm.