Fixed bugs in updating learning status.