Fixed bug on learning.