Fixed prblem with learning.