fix bugs of learning