fixing learn crash