Highly important fix in learning algorithm.