fix migration to learning.