Fix learning bug.