Corrected learn bug