Fix --learn in 1.2